/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DHMO;

import GUI.PlayerWindow;
import javax.swing.UIManager;
import de.javasoft.plaf.synthetica.blackeye.*;
import java.io.File;
import java.io.PrintStream;

/**
 *
 * @author IS G2
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel("de.javasoft.plaf.synthetica.SyntheticaBlackEyeLookAndFeel");
            
             // Descomentar para desviar el logging a un archivo de texto que se borra cada ejecución y se vuelve a grabar.
             // Aumenta velocidad.
            
            File f = new File("./config/log.txt");
            if (f.exists()) {
                f.delete();
            }
            f.createNewFile();
            System.setErr(new PrintStream(f));
            
            
        } catch (Exception e) {
            e.printStackTrace();
        }
        PlayerWindow window;
        if(args.length == 0)
            window = new PlayerWindow();
        else
            window = new PlayerWindow(args[0]);
        window.setVisible(true);
    }
}
